cmake_minimum_required(VERSION 3.5)

# c++标准
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

#set(CMAKE_C_STANDARD 17)
#set(CMAKE_C_STANDARD_REQUIRED ON)

project(AOS VERSION 0.0.1 LANGUAGES C CXX)

find_package(fmt REQUIRED)

if (WIN32)
    set(FMT_LINK_LIB fmt::fmt-header-only)
elseif (UNIX)
    # 需自行导入
    find_package(Threads REQUIRED)
    set(FMT_LINK_LIB fmt::fmt)
endif ()

# 子模块
add_subdirectory(lab1)

add_subdirectory(lab2)

add_subdirectory(lab3)